﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<%var lstUser = ViewData["lstUser"] as IEnumerable<QLDAOL.Models.USER_PROJECT_ROLE>; %>
<%var lstState = ViewData["lstState"] as IEnumerable<QLDAOL.Models.DM_State>; %>
<%var taskID = ViewData["taskID"]; %>
<div class="adduser">
    Task:<br />
    <input type="text" id="task" class="width60 fl"/>
    <br />
    <br />
    User: <br />
    <select id="user" class="width25 fl">
        <%foreach (var user in lstUser)
          { %>
          <option id="<%=user.USER.ID  %>" value="<%=user.USER.ID  %>"><%=user.USER.UserName %></option>
        <%} %>
        
    </select>
    <br /><br />
    Start Date (mm/dd/yyyy):
    <br />
    <input type="text" id="start" class="width25 fl" />
    <br /><br />
    Deadline (mm/dd/yyyy):<br />
    <input type="text" id="dead" class="width25 fl" />
    <br /><br />
    Status: <br />
    <select id="status" class="width25 fl">
        <%foreach (var state in lstState)
          { %>
          <option id="<%=state.ID  %>" value="<%=state.ID  %>"><%=state.TaskState%></option>
        <%} %>
        
    </select>
    <input type="button" id="btn_add" class="marginA5 button" value="Edit" onclick="edittaskAct(<%=taskID%>);"/>
</div>



